<?
echo $session = md5($ipaddress . $useragent . microtime(true));
echo $ipaddress = substr($_SERVER['REMOTE_ADDR'], 0, 255);
echo $useragent = substr($_SERVER['HTTP_USER_AGENT'], 0, 255);
?>